package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xmy.cultivate.enums.OrderTypeEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author min
 * @since 2022-08-12
 */
@TableName("order_transfer_detail")
@Data
public class OrderTransferDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    
    private Long id;

    
    private Long orderId;

    
    private Long oldOrderId;

    
    private Long oldOrderDetailId;

    private Integer outHouse;

    private BigDecimal outPrice;

    private BigDecimal servePrice;

    private BigDecimal materialsPrice;

    
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    private int status;

    private Integer version;

    /**
     * created_at
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    //补费前，欠费金额
    private BigDecimal ownPrice;

    //补费金额
    private BigDecimal inPrice;

    private OrderTypeEnum orderType;
}
